$(function() {

	$('.news-delete-btn').on('click',function(){
		var $this = $(this);
		actionConfirm({
			msg: "确定要删除吗？",
			confirm: function() {
				cAjax({
					url : "/web/news/deleteNews",
					type:'post',
					data:{id: $this.parents('tr').attr('data-news-id')},
					success:function(obj){
						$this.parents('tr').addClass('deleted');
						$this.parent().html('<span class="label label-warning">已删除</span>');
					},
					error: function(obj) {
					}
				});
			}
		});
	});
});

